/**
 * 
 */
package sources;

import java.util.Collection;
import java.util.Iterator;

/**
 * @author Lookouster
 *
 */
public class Qualification {
	/**
 *
 */
private Collection<Ouvrier> ouvrier;

/**
 * Getter of the property <tt>ouvrier</tt>
 *
 * @return Returns the ouvrier.
 * 
 */
public Collection<Ouvrier> getOuvrier()
{
	return ouvrier;
}
 
/**
 * Returns an iterator over the elements in this collection. 
 *
 * @return an <tt>Iterator</tt> over the elements in this collection
 * @see	java.util.Collection#iterator()
 * 
 */
public Iterator<Ouvrier> ouvrierIterator(){
	return ouvrier.iterator();
}

/**
 * Returns <tt>true</tt> if this collection contains no elements.
 *
 * @return <tt>true</tt> if this collection contains no elements
 * @see	java.util.Collection#isEmpty()
 *
 */
public boolean isOuvrierEmpty(){
	return ouvrier.isEmpty();
}

/**
 * Returns <tt>true</tt> if this collection contains the specified element. 
 *
 * @param element whose presence in this collection is to be tested.
 * @see	java.util.Collection#contains(Object)
 *
 */
public boolean containsOuvrier(Ouvrier ouvrier){
	return this.ouvrier.contains(ouvrier);
}

/**
 * Returns <tt>true</tt> if this collection contains all of the elements
 * in the specified collection.
 *
 * @param elements collection to be checked for containment in this collection.
 * @see	java.util.Collection#containsAll(Collection)
 *
 */
public boolean containsAllOuvrier(Collection<Ouvrier> ouvrier){
	return this.ouvrier.containsAll(ouvrier);
}

/**
 * Returns the number of elements in this collection.
 *
 * @return the number of elements in this collection
 * @see	java.util.Collection#size()
 *
 */
public int ouvrierSize(){
	return ouvrier.size();
}

/**
 * Returns all elements of this collection in an array.
 *
 * @return an array containing all of the elements in this collection
 * @see	java.util.Collection#toArray()
 *
 */
public Ouvrier[] ouvrierToArray(){
	return ouvrier.toArray(new Ouvrier[ouvrier.size()]);
}


/**
 * Ensures that this collection contains the specified element (optional
 * operation). 
 *
 * @param element whose presence in this collection is to be ensured.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean addOuvrier(Ouvrier ouvrier){
	return this.ouvrier.add(ouvrier);
}

/**
 * Setter of the property <tt>ouvrier</tt>
 *
 * @param ouvrier the ouvrier to set.
 *
 */
public void setOuvrier(Collection<Ouvrier> ouvrier){
	this.ouvrier = ouvrier;
}

/**
 * Removes a single instance of the specified element from this
 * collection, if it is present (optional operation).
 *
 * @param element to be removed from this collection, if present.
 * @see	java.util.Collection#add(Object)
 *
 */
public boolean removeOuvrier(Ouvrier ouvrier){
	return this.ouvrier.remove(ouvrier);
}

/**
 * Removes all of the elements from this collection (optional operation).
 *
 * @see	java.util.Collection#clear()
 *
 */
public void clearOuvrier(){
	this.ouvrier.clear();
}
	int idQualification;
	String libelle;
	/**
	 * @param idQualification
	 * @param libelle
	 */
	public Qualification(int idQualification, String libelle) {
		super();
		this.idQualification = idQualification;
		this.libelle = libelle;
	}
	/**
	 * @return the idQualification
	 */
	protected int getIdQualification() {
		return idQualification;
	}
	/**
	 * @param idQualification the idQualification to set
	 */
	protected void setIdQualification(int idQualification) {
		this.idQualification = idQualification;
	}
	/**
	 * @return the libelle
	 */
	protected String getLibelle() {
		return libelle;
	}
	/**
	 * @param libelle the libelle to set
	 */
	protected void setLibelle(String libelle) {
		this.libelle = libelle;
	}

}
